<div class="layui-body">
    <!-- 主体区域开始 -->
    <!--当前位置开始-->
    <div class="layui-card layadmin-header">
        <span class="layui-breadcrumb">
            <a href="{:url('Index/index')}">系统</a>
            <a href="{:url('Advertisement/index')}">广告管理</a>
            <a><cite>修改</cite></a>
        </span>
    </div>
    <!--当前位置结束-->
    <div class="layui-row">
        <div id="head">
            <div class="layui-row">
                <div class="layui-col-md2 layui-col-md-offset10" id="head-right">
                    <a href="{:url('Advertisement/index')}" class="layui-btn layui-btn-normal" title="返回列表">返回列表</a>
                </div>
            </div>
        </div>
        <div id="main">
            <form class="layui-form" action="" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">链接</label>
                    <div class="layui-input-block">
                        <input type="url" name="link" value="{$data.link}" required lay-verify="required"
                               placeholder="请输入链接" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <textarea name="content" class="layui-textarea" placeholder="请输入备注内容">{$data.content}</textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">序号</label>
                    <div class="layui-input-block">
                        <input type="number" name="num" value="{$data.num}" required lay-verify="required" placeholder="请输入序号"
                               autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">封面</label>
                    <div class="layui-input-block">
                        <button type="button" class="layui-btn layui-btn-primary" id="upload">
                            <i class="layui-icon layui-icon-upload-drag"></i>上传图片
                        </button>
                        <img src="{$data.path}" id="imgShow" class="uploadImg">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">封面路径</label>
                    <div class="layui-input-block">
                        <input type="text" name="path" value="{$data.path}" id="litPic" class="layui-input" placeholder="自定义图片路径">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="hidden" name="request_url" value="{:url('Advertisement/data_save')}">
                        <input type="hidden" name="id" value="{$data.id}">
                        <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--主体区域结束-->
</div>